package com.example.carbonbackend.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 碳排放表
 * @TableName carbonemission
 */
@TableName(value ="carbonemission")
@Data
public class CarbonEmission implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 区块链交易id
     */
    @TableField(value = "blockchain_id")
    private String blockchainId;

    /**
     * 公司id
     */
    @TableField(value = "company_id")
    private Long companyId;

    /**
     * url
     */
    @TableField(value = "url")
    private String url;

    /**
     * 状态0未审核1已审核
     */
    @TableField(value = "emission_status")
    private Integer emissionStatus;

    /**
     * 排放量
     */
    @TableField(value = "emission")
    private Double emission;

    /**
     *
     */
    @TableField(value = "emission_year")
    private Integer year;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}